<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<style>
  .Odiv1 {
    width: 200px;
    height: 200px;
    background-color: pink;
  }

  .Odiv2 {
    margin: 25px auto;
    width: 100px;
    height: 100px;
    background-color: #ccc;
  }
</style>
<script src="../vue.js"></script>

<body>
  <div id="app">
    <div class="Odiv1" @click.self="doParent">
      <div class="Odiv2" @click="doThis"></div>
    </div>
    <div class="Odiv1" @click="doParent">
      <div class="Odiv2" @click.self="doThis"></div>
    </div>
  </div>
  <script>
    const vm = new Vue({
      el: "#app",
      methods: {
        doParent() {
          console.log("I am parent DOM");
        },
        doThis() {
          console.log("I am Child DOM");
        },
      }
    });
  </script>
</body>

</html>